Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default format to 'cli-no-colour' when output to file #257

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ngducdun
Copy link

@ngducdun ngducdun commented Jul 2, 2024

When use the flag --output FILE, CMSScanner also write escape sequences to FILE.

1   _______________________________________________________________
  1          __          _______   _____
  2          \ \        / /  __ \ / ____|
  3           \ \  /\  / /| |__) | (___   ___  __ _ _ __ ®
  4            \ \/  \/ / |  ___/ \___ \ / __|/ _` | '_ \
  5             \  /\  /  | |     ____) | (__| (_| | | | |
  6              \/  \/   |_|    |_____/ \___|\__,_|_| |_|
  7 
  8          WordPress Security Scanner by the WPScan Team
  9                          Version 3.8.25
 10        Sponsored by Automattic - https://automattic.com/
 11        @_WPScan_, @ethicalhack3r, @erwan_lr, @firefart
 12 _______________________________________________________________
 13 
 14 ^[[32m[+]^[[0m URL: http://localhost/ [::1]
 15 ^[[32m[+]^[[0m Started: Tue Jul  2 16:33:45 2024
 16 
 17 Interesting Finding(s):
 18 
 19 ^[[32m[+]^[[0m Headers
 20  | Interesting Entry: Server: Apache
 21  | Found By: Headers (Passive Detection)
 22  | Confidence: 100%

This PR solve this issue.

1   _______________________________________________________________
  1          __          _______   _____
  2          \ \        / /  __ \ / ____|
  3           \ \  /\  / /| |__) | (___   ___  __ _ _ __ ®
  4            \ \/  \/ / |  ___/ \___ \ / __|/ _` | '_ \
  5             \  /\  /  | |     ____) | (__| (_| | | | |
  6              \/  \/   |_|    |_____/ \___|\__,_|_| |_|
  7 
  8          WordPress Security Scanner by the WPScan Team
  9                          Version 3.8.25
 10        Sponsored by Automattic - https://automattic.com/
 11        @_WPScan_, @ethicalhack3r, @erwan_lr, @firefart
 12 _______________________________________________________________
 13 
 14 [+] URL: http://localhost/ [::1]
 15 [+] Started: Tue Jul  2 16:53:59 2024
 16 
 17 Interesting Finding(s):
 18 
 19 [+] Headers
 20  | Interesting Entry: Server: Apache
 21  | Found By: Headers (Passive Detection)
 22  | Confidence: 100%

@ngducdun ngducdun closed this Jul 2, 2024
@ngducdun ngducdun reopened this Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant